const routes = [
  {
    path: "/",
    component: () => import("layouts/MainLayout.vue"),
    children: [
      { path: "", component: () => import("pages/LoginPage.vue") },
      { path: "login", component: () => import("pages/LoginPage.vue") },
      { path: "index", component: () => import("pages/IndexPage.vue") },
      {
        path: "college",
        component: () => import("pages/CollegeLibraryPage.vue"),
      },
      {
        path: "post",
        component: () => import("pages/PostMessagePage.vue"),
      },
      {
        path: "course",
        component: () => import("pages/CoursePage.vue"),
      },
      { path: "user", component: () => import("pages/UserInfo.vue") },
      { path: "test", component: () => import("src/pages/TestPage.vue") },
    ],
  },
  {
    path: "/manage",
    component: () => import("layouts/ManagerLayout.vue"),
    children: [
      { path: "", component: () => import("pages/CourseManage.vue") },
      { path: "course", component: () => import("pages/CourseManage.vue") },
      { path: "user", component: () => import("pages/UserManage.vue") },
    ],
  },
  // Always leave this as last one,
  // but you can also remove it
  {
    path: "/:catchAll(.*)*",
    component: () => import("pages/ErrorNotFound.vue"),
  },
];

export default routes;
